package com.weayer.service;

import com.weayer.dto.DriverUser;
import com.weayer.dto.ResponseResult;
import com.weayer.remote.ServiceDriverClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: Api服务 - 司机 - 用户Service
 * @author: Weayer
 **/
@Service
public class UserService {
    @Autowired
    private ServiceDriverClient serviceDriverClient;

    /**
     * @Description: 添加司机
     * @Param: [driverUser]
     * @return: com.weayer.dto.ResponseResult
     **/
    public ResponseResult addDriverUser(DriverUser driverUser){
        return serviceDriverClient.addUser(driverUser);
    }
    /**
     * @Description: 修改司机信息
     * @Param: [driverUser]
     * @return: com.weayer.dto.ResponseResult
     **/
    public ResponseResult updateDriverUser(DriverUser driverUser){
        return serviceDriverClient.updateUser(driverUser);
    }
}
